package org.kjtc.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

	private static Logger logger = Logger.getLogger(PageController.class);

	@RequestMapping(value = {"admin/{page}"})
	public Object redirectadmin(@PathVariable("page") String page) {
		Object redirectPage = null;
		redirectPage = "admin" + "/" + page;
		return redirectPage;
	}

	@RequestMapping(value = {"error/{page}"})
	public Object redirecterror(@PathVariable("page") String page) {
		Object redirectPage = null;
		redirectPage = "error" + "/" + page;
		return redirectPage;
	}

	@RequestMapping(value = {"popup/{page}"})
	public Object redirectpopup(@PathVariable("page") String page) {
		Object redirectPage = null;
		redirectPage = "popup" + "/" + page;
		return redirectPage;
	}

	@RequestMapping(value = {"weChat/{page}"})
	public Object redirectweChat(@PathVariable("page") String page) {
		Object redirectPage = null;
		redirectPage = "weChat" + "/" + page;
		return redirectPage;
	}

	@RequestMapping(value = {"weChatApp/{page}"})
	public Object redirectweChatApp(@PathVariable("page") String page) {
		Object redirectPage = null;
		redirectPage = "weChatApp" + "/" + page;
		return redirectPage;
	}

	@RequestMapping(value = {"userManage/{page}"})
	public Object redirectuserManage(@PathVariable("page") String page) {
		Object redirectPage = null;
		redirectPage = "userManage" + "/" + page;
		return redirectPage;
	}
}
